package com.baizhiedu.basic;

import java.util.*;

/**
 * ClassName: Person
 * Description: new Person() 通过工厂
 * Date: 2022/11/18 PM 3:28:43
 * <p>
 * project: spring5
 * package: com.baizhiedu.basic
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
public class Person {
    private Integer id;
    private String name;
    private String[] emails;
    private Set<String> tels;
    private List<String> addresses;
    private Map<String, String> getQqs;
    private Properties p;

    public Properties getP() {
        return p;
    }

    public void setP(Properties p) {
        this.p = p;
    }

    public Map<String, String> getGetQqs() {
        return getQqs;
    }

    public void setGetQqs(Map<String, String> getQqs) {
        this.getQqs = getQqs;
    }

    public List<String> getAddresses() {
        return addresses;
    }

    public void setAddresses(List<String> addresses) {
        this.addresses = addresses;
    }

    public Set<String> getTels() {
        return tels;
    }

    public void setTels(Set<String> tels) {
        this.tels = tels;
    }

    public String[] getEmails() {
        return emails;
    }

    public void setEmails(String[] emails) {
        this.emails = emails;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private Person() {
        System.out.println("Person.Person");
    }

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", emails=" + Arrays.toString(emails) +
                ", tels=" + tels +
                ", addresses=" + addresses +
                ", getQqs=" + getQqs +
                ", p=" + p +
                '}';
    }
}
